home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
chtiff
/
source
/
define.h
< prev
next >
Wrap
Text File
|
1993-07-08
|
1KB
|
47 lines
/* TIFF変換プログラムのヘッダ */
/* Rational type */
typedef struct{
unsigned long bunsi;
unsigned long bunbo;
} Rat;
/* tiff file information */
typedef struct{
unsigned long New_Subfile_Type;
unsigned short Image_Width;
unsigned short Image_Length;
unsigned short Bits_Per_Sample;
unsigned short Compression;
unsigned short Photo_Interp;
unsigned short Fill_Order;
unsigned long *Strip_Offset;
unsigned short Samples_Per_Pixel;
unsigned long Rows_Per_Strip;
unsigned long *Strips_ByteCount;
unsigned short Max_Sample_Value;
Rat X_Resolution;
Rat Y_Resolution;
unsigned short Planer_Config;
unsigned short *RED, *GREEN, *BLUE; /* カラーパレットデータ */
int Intel; /* 0:not Intel n>0:Intel -1:not TIFF */
int Opacity; /* 1:NeXT RGBO format 0:others */
int Color_Map; /* カラーマップの存在 */
FILE *fp;
unsigned int Strips; /* 画像データのブロック数 */
} TIFF_INFO;
/* IFDのフィールドタイプ */
#define BYTE_TYPE 1
#define ASCII_TYPE 2
#define SHORT_TYPE 3
#define LONG_TYPE 4
#define RATIONAL_TYPE 5
/* Warning 対策 */
#define UL_ (unsigned long)
/* バッファーに使うRAMの量 */
#define TEMP_SIZE (65500UL)